package com.qidianit.mes.device.mapper;

import com.qidianit.mes.pojo.DeviceTypeVO;
import com.qidianit.mes.pojo.Process;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author djl
 * @Time 2024/10/15 23:27
 */
@Mapper
public interface DeviceTypeMapper {
    List<DeviceTypeVO> selectlist(@Param("deviceTypeName") String deviceTypeName, @Param("isEnabled") Boolean isEnabled,@Param("parentCode")String parentCode);

    DeviceTypeVO selectByDeviceTypeId(@Param("deviceTypeCode") String deviceTypeCode);

    void addNewDeviceType(DeviceTypeVO deviceTypeVO);


    void editDeviceType(DeviceTypeVO deviceTypeVO);

    void deleteDeviceType(String deviceTypeCode);

    List<DeviceTypeVO> selectByParentCode(String parentCode);

    Integer selectByDeviceTypeSonCount(String parentCode);
}
